<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../../js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
</head>
<body>
<!--<script type="text/javascript">-->
<!--    function autoJumpPage() {-->
<!--        var delay = document.getElementById("time").innerHTML;-->
<!--        var t = setTimeout("autoJumpPage()", 1000);-->
<!--        if (delay > 0) {-->
<!--            delay&#45;&#45;;-->
<!--            document.getElementById("time").innerHTML = delay;-->
<!--        }else {-->
<!--            clearTimeout(t);-->
<!--            window.location.href="";-->
<!--        }-->
<!--    }-->
<!--</script>-->
<script type="text/javascript">
    $(document).ready(function () {
        function autoJumpPage(count) {
            window.setTimeout(function () {
                count--;
                if (count > 0) {
                    $('time').attr('innerHTML', count);
                    autoJumpPage(count);
                } else {
                    location.href = "";
                }
            }, 1000)
        }

        autoJumpPage(3);
    });
</script>
<span id="time">3</span><a href="index.html">点击跳转</a>
</body>
</html>